1
0
Fork 0

Require attribute TelegramBot#api_token

This commit is contained in:
Alex Kotov 2018-11-29 19:12:07 +05:00
parent f04787436b
commit ca06108ed4
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class RequireApiTokenOfTelegramBots < ActiveRecord::Migration[5.2]
def change
change_column :telegram_bots, :api_token, :string, null: false
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_11_29_140421) do
ActiveRecord::Schema.define(version: 2018_11_29_141112) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -34,7 +34,7 @@ ActiveRecord::Schema.define(version: 2018_11_29_140421) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "secret", null: false
t.string "api_token"
t.string "api_token", null: false
end
end