Files
sx-fc/db/migrate/20170403135121_create_customers.rb
2017-06-07 19:10:57 +06:30

18 lines
535 B
Ruby

class CreateCustomers < ActiveRecord::Migration[5.1]
def change
create_table :customers, :id => false do |t|
t.string :customer_id, :limit => 16, :primary_key => true #custom foreign_key to prevent conflict during sync
t.string :name, :null => false
t.string :company
t.string :contact_no, :unique => true
t.string :email
t.date :date_of_birth
t.string :membership_id
t.string :membership_type
t.string :membership_authentication_code
t.timestamps
end
end
end