Files
nemo_encoder/db/migrate/20170121083753_create_user.rb
2017-01-24 17:45:40 +06:30

14 lines
393 B
Ruby

class CreateUser < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.string :name,:null => false
t.string :nrc
t.string :email
t.boolean :is_active,:default =>false
t.string :phone
t.string :address
t.string :secrect_key
t.timestamps null: false
end
end
end