12 lines
290 B
Ruby
12 lines
290 B
Ruby
class CreateEmployees < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :employees do |t|
|
|
t.string :name, :null => false
|
|
t.string :role, :null => false, :default => "cashier"
|
|
t.string :encrypted_access_code, :null => false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|