Sha256: c9495eb67deb67572dd79ae67a319fc1f45d04cf6c4c850ab706bcfa1479a697

Contents?: true

Size: 276 Bytes

Versions: 20

Compression:

Stored size: 276 Bytes

Contents

class AddFieldsToComments < ActiveRecord::Migration
  def self.up
    add_column :comments, :sash_id, :integer
    add_column :comments, :level, :integer, :default => 0
  end

  def self.down
    remove_column :comments, :sash_id
    remove_column :comments, :level
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
merit-2.4.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.3.4 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.3.3 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.3.2 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.3.1 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.3.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.2.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.1.2 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.1.1 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.1.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-2.0.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.9.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.8.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.7.1 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.7.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.6.2 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.6.1 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.6.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.5.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb
merit-1.4.0 test/dummy/db/migrate/20130321082817_add_fields_to_comments.rb