Sha256: 84a455047c97c543dc3a1190f0e0b64207146f3f92830bcf7b19e7234da3374e

Contents?: true

Size: 474 Bytes

Versions: 16

Compression:

Stored size: 474 Bytes

Contents

class AddStateToTimelineObjects < ActiveRecord::Migration
  def self.up
    add_column :comments, :state, :string, :limit => 16, :null => false, :default => "Expanded"
    add_column :emails,   :state, :string, :limit => 16, :null => false, :default => "Expanded"
    execute("UPDATE comments SET state='Expanded'")
    execute("UPDATE emails   SET state='Expanded'")
  end

  def self.down
    remove_column :comments, :state
    remove_column :emails,   :state
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.5 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.4 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.3 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.2 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.12.3 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.12.2 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.1 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.12.1 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.13.0 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.12.0 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.11.4 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.11.3 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.11.2 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.11.1 db/migrate/20100928030626_add_state_to_timeline_objects.rb
fat_free_crm-0.11.0 db/migrate/20100928030626_add_state_to_timeline_objects.rb