diff options
author | rhenium <re4k@re4k.info> | 2013-05-11 15:12:20 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-11 15:12:20 +0900 |
commit | aa715210c274c38dba2b95da7b5d321656428e26 (patch) | |
tree | c17551b53fbfff09be8fc6f952db78653522ec19 /db | |
parent | 387a88f7dc063b91343b717c7582852ebe8029f9 (diff) | |
download | aclog-aa715210c274c38dba2b95da7b5d321656428e26.tar.gz |
change Account.consumer_version to be not nullable
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130511060935_change_account_consumer_version_not_null.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20130511060935_change_account_consumer_version_not_null.rb b/db/migrate/20130511060935_change_account_consumer_version_not_null.rb new file mode 100644 index 0000000..0c37dc2 --- /dev/null +++ b/db/migrate/20130511060935_change_account_consumer_version_not_null.rb @@ -0,0 +1,5 @@ +class ChangeAccountConsumerVersionNotNull < ActiveRecord::Migration + def change + change_column :accounts, :consumer_version, :integer, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 35c1268..49247ed 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20130413042256) do +ActiveRecord::Schema.define(version: 20130511060935) do create_table "accounts", force: true do |t| t.integer "user_id", limit: 8, null: false @@ -19,7 +19,7 @@ ActiveRecord::Schema.define(version: 20130413042256) do t.string "oauth_token_secret", null: false t.datetime "created_at" t.datetime "updated_at" - t.integer "consumer_version" + t.integer "consumer_version", null: false end add_index "accounts", ["user_id"], name: "index_accounts_on_user_id", unique: true, using: :btree |