mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
update schema and migration
This commit is contained in:
parent
c1faf41305
commit
355f3979ce
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
class AddTranslatorToUsers < ActiveRecord::Migration
|
class AddTranslatorToUsers < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
add_column :users, :translator, :boolean
|
add_column :users, :translator, :boolean, default: :false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -295,7 +295,7 @@ ActiveRecord::Schema.define(version: 20150619123121) do
|
||||||
t.string "socket_key", default: ""
|
t.string "socket_key", default: ""
|
||||||
t.datetime "socket_key_expiry", default: '0001-01-01 00:00:00'
|
t.datetime "socket_key_expiry", default: '0001-01-01 00:00:00'
|
||||||
t.string "locale"
|
t.string "locale"
|
||||||
t.boolean "translator"
|
t.boolean "translator", default: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||||
|
|
Loading…
Reference in a new issue