add new files
This commit is contained in:
14
db/migrate/20170121083753_create_user.rb
Normal file
14
db/migrate/20170121083753_create_user.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user