mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
21 lines
550 B
Ruby
21 lines
550 B
Ruby
class CreateAdminUsers < ActiveRecord::Migration[5.1]
|
|
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
|