1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate/20130128065543_remove_translated_fields_from_items.rb

14 lines
398 B
Ruby
Raw Permalink Normal View History

class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[4.2]
2013-01-28 00:10:25 -08:00
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