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