creates Manager
This commit is contained in:
committed by
Juanjo Bazán
parent
39119b9d6b
commit
b921c67676
12
db/migrate/20150930082311_create_managers.rb
Normal file
12
db/migrate/20150930082311_create_managers.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateManagers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :managers do |t|
|
||||
t.string :username, null: false
|
||||
t.string :password_digest, null: false
|
||||
t.timestamp :last_login_at
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :managers, [:username]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user