Require attribute TelegramBot#api_token
This commit is contained in:
parent
f04787436b
commit
ca06108ed4
2 changed files with 9 additions and 2 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
Reference in a new issue