creates Manager

This commit is contained in:
Juanjo Bazán
2015-09-30 11:22:03 +02:00
committed by Juanjo Bazán
parent 39119b9d6b
commit b921c67676
5 changed files with 86 additions and 1 deletions

View 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