mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
23 lines
577 B
Ruby
23 lines
577 B
Ruby
class CreateAdminUsers < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
create_table :admin_users do |t|
|
|
t.string :first_name, :default => "", :null => false
|
|
t.string :last_name, :default => "", :null => false
|
|
t.string :role, :null => false
|
|
t.string :email, :null => false
|
|
t.boolean :status, :default => false
|
|
t.string :token, :null => false
|
|
t.string :salt, :null => false
|
|
t.string :crypted_password, :null => false
|
|
t.string :preferences
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :admin_users
|
|
end
|
|
|
|
end
|