diff --git a/db/migrate/20150619123121_add_translator_to_users.rb b/db/migrate/20150619123121_add_translator_to_users.rb index a772755c..849d5ebc 100644 --- a/db/migrate/20150619123121_add_translator_to_users.rb +++ b/db/migrate/20150619123121_add_translator_to_users.rb @@ -1,5 +1,5 @@ class AddTranslatorToUsers < ActiveRecord::Migration def change - add_column :users, :translator, :boolean + add_column :users, :translator, :boolean, default: :false end end diff --git a/db/schema.rb b/db/schema.rb index 8396d6eb..33b792fd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -295,7 +295,7 @@ ActiveRecord::Schema.define(version: 20150619123121) do t.string "socket_key", default: "" t.datetime "socket_key_expiry", default: '0001-01-01 00:00:00' t.string "locale" - t.boolean "translator" + t.boolean "translator", default: false end add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree