impress/db/migrate/20130128065543_remove_translated_fields_from_items.rb
Matchu fcf3292448 Add Rails version to old migrations
I'm not sure it's literally true that they were all built against Rails 3.2, but that's what it was at before we upgraded, and like. that's probably fine
2023-10-23 19:05:08 -07:00

13 lines
398 B
Ruby

class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[3.2]
def self.up
remove_column :items, :name
remove_column :items, :description
remove_column :items, :rarity
end
def self.down
add_column :items, :name, :limit => 100, :null => false
add_column :items, :description, :limit => 16777215, :null => false
add_columm :items, :rarity, :limit => 25
end
end