1
0

20140509170420_create_scenarios.rb 293 B

123456789101112
  1. class CreateScenarios < ActiveRecord::Migration
  2. def change
  3. create_table :scenarios do |t|
  4. t.string :name, :null => false
  5. t.integer :user_id, :null => false
  6. t.timestamps
  7. end
  8. add_column :users, :scenario_count, :integer, :null => false, :default => 0
  9. end
  10. end