Skip to content

Commit

Permalink
Consolodated migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Neufeld committed Jul 28, 2009
1 parent 1329672 commit 4275542
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 42 deletions.
4 changes: 3 additions & 1 deletion db/migrate/20090617191213_create_freemailer_campaigns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ def self.up
t.string :title
t.text :body_template
t.integer :sender_id, :references => :users

t.boolean :sent, :default => false
t.string :from

t.timestamps
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ def self.up
t.integer :freemailer_campaign_id
t.integer :contact_id
t.string :delivery_status

t.timestamps
end
add_index :freemailer_campaign_contacts, [:contact_id, :freemailer_campaign_id], :unique => true
end

def self.down
remove_index :freemailer_campaign_contacts, :column => [:contact_id, :freemailer_campaign_id]
drop_table :freemailer_campaign_contacts
end
end
9 changes: 0 additions & 9 deletions db/migrate/20090623195836_add_sent_to_freemailer_campaign.rb

This file was deleted.

9 changes: 0 additions & 9 deletions db/migrate/20090701134557_add_from_to_freemailer_campaign.rb

This file was deleted.

9 changes: 0 additions & 9 deletions db/migrate/20090713165206_add_index_for_campaign_contacts.rb

This file was deleted.

2 changes: 1 addition & 1 deletion db/migrate/20090714140554_create_contact_carts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class CreateContactCarts < ActiveRecord::Migration
def self.up
create_table :contact_carts do |t|
t.integer :user_id
t.string :name
t.string :title
t.boolean :global, :default => false

t.timestamps
Expand Down
9 changes: 0 additions & 9 deletions db/migrate/20090716190453_remove_name_from_contact_cart.rb

This file was deleted.

6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@

create_table "contact_carts", :force => true do |t|
t.integer "user_id"
t.string "title"
t.boolean "global", :default => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "title"
end

create_table "contact_emails", :force => true do |t|
Expand Down Expand Up @@ -117,10 +117,10 @@
t.string "title"
t.text "body_template"
t.integer "sender_id"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "sent", :default => false
t.string "from"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "log_items", :force => true do |t|
Expand Down

0 comments on commit 4275542

Please sign in to comment.