deletes Manager
This commit is contained in:
committed by
Juanjo Bazán
parent
855763267f
commit
df14e979ca
16
db/migrate/20151015135154_destroy_manager.rb
Normal file
16
db/migrate/20151015135154_destroy_manager.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class DestroyManager < ActiveRecord::Migration
|
||||
def self.up
|
||||
drop_table :managers
|
||||
end
|
||||
|
||||
def self.down
|
||||
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