Sha256: 4462e8aa02a30ba37ecd7b1c97f775c60578f59454dd60aa8b7dc2ae13243d7b

Contents?: true

Size: 461 Bytes

Versions: 18

Compression:

Stored size: 461 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration

  # Upgrades schema from version 0.3 to version 0.4 
  def self.up
    add_column :comatose_pages, "filter_type", :string, :limit => 25, :default => "Textile"
    add_column :comatose_pages, "keywords", :string, :limit => 1000
  end

  # Downgrades schema from version 0.4 to version 0.3
  def self.down
    remove_column :comatose_pages, "filter_type"
    remove_column :comatose_pages, "keywords"
  end

end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
aslakjo-aslakjo-comatose-2.0.5.1 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.2 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.3 generators/comatose_migration/templates/v4_upgrade.rb
darthapo-comatose-2.0.3 generators/comatose_migration/templates/v4_upgrade.rb
darthapo-comatose-2.0.4 generators/comatose_migration/templates/v4_upgrade.rb
darthapo-comatose-2.0.5 generators/comatose_migration/templates/v4_upgrade.rb
darthapo-comatose-2.0 generators/comatose_migration/templates/v4_upgrade.rb
jcnetdev-comatose-2.0.1 generators/comatose_migration/templates/v4_upgrade.rb
staugaard-comatose-2.0.2 generators/comatose_migration/templates/v4_upgrade.rb
staugaard-comatose-2.0.3 generators/comatose_migration/templates/v4_upgrade.rb
comatose-2.0.5 generators/comatose_migration/templates/v4_upgrade.rb
comatose-2.0.1 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.12 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.11 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.10 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.9 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.8 generators/comatose_migration/templates/v4_upgrade.rb
aslakjo-comatose-2.0.5.7 generators/comatose_migration/templates/v4_upgrade.rb