Class: CreateRollout
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateRollout
- Defined in:
- lib/generators/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
12 13 14 |
# File 'lib/generators/templates/migration.rb', line 12 def down drop_table :rollouts end |
#up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/templates/migration.rb', line 2 def up create_table :rollouts do |t| t.string :name t.string :group t.integer :user_id t.integer :percentage t.integer :failure_count end end |