This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
- Ruby version
2.3.0
Add database configuration to config/database.yml
in your project directory
rake db:new_migration name=company
edit db/migrate/20161023234130_company.rb
def up
create_table :employee_info do |t|
t.string :first_name
t.string :last_name
end
execute "insert into employee_info values (1,'bhargav','amin');"
def down
execute "Drop table employee_info;"
end
rake db:migrate
rake db:migrate VERSION=20081220234130
rake db:migrate RAILS_ENV=test
rake db:migrate:up VERSION=20081220234130
rake db:rollback