Files
nemo_encoder/db/migrate/20170121083753_create_user.rb
2017-02-03 17:56:27 +06:30

13 lines
359 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.timestamps null: false
end
end
end