Class: DropCampaigns
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- DropCampaigns
- Defined in:
- db/migrate/20130619192506_drop_campaigns.rb
Overview
Drop campaigns table for old-style campaigns
Constant Summary collapse
- TABLE_NAME =
Table being dropped
:campaigns
Instance Method Summary collapse
-
#down ⇒ void
Recreates campaigns, but does not restore data.
-
#up ⇒ void
Drop campaigns.
Instance Method Details
#down ⇒ void
This method returns an undefined value.
Recreates campaigns, but does not restore data.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'db/migrate/20130619192506_drop_campaigns.rb', line 13 def down create_table TABLE_NAME do |t| # # Columns # t.datetime :created_at, :null => false t.string :name, :limit => 512 t.text :prefs t.datetime :started_at t.integer :status, :default => 0 t.datetime :updated_at, :null => false # # Foreign Keys # t.references :workspace, :null => false end end |
#up ⇒ void
This method returns an undefined value.
Drop campaigns
42 43 44 |
# File 'db/migrate/20130619192506_drop_campaigns.rb', line 42 def up drop_table TABLE_NAME end |