Sha256: ab6a6de732320257f79140eb7c8b372e5218f544e4aae44622e632f38b460a40
Contents?: true
Size: 740 Bytes
Versions: 12
Compression:
Stored size: 740 Bytes
Contents
class CreateInflectionals < ActiveRecord::Migration def self.up unless table_exists? :inflectionals create_table :inflectionals, :force => false do |t| t.timestamps t.integer "label_id" t.string "value", :limit => 4000 t.string "normal_hash" end end unless index_exists?(:inflectionals, :label_id, :name => "ix_inflectionals_fk") add_index :inflectionals, :label_id, :name => "ix_inflectionals_fk" end unless index_exists?(:inflectionals, :normal_hash, :name => "ix_inflectionals_normal_hash") add_index :inflectionals, :normal_hash, :name => "ix_inflectionals_normal_hash" end end def self.down # we don't want to delete existing data end end
Version data entries
12 entries across 12 versions & 1 rubygems