Files
sx-fc/db/migrate/20170403155230_create_employees.rb
2017-04-03 22:30:27 +06:30

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