Sha256: 7522d651b490389ac35c22385928b7a6234091b5225e7b1897cdb101afe864e6
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
class CreateInflectionals < ActiveRecord::Migration[4.2] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iqvoc_inflectionals-2.11.4 | db/migrate/20120109143704_create_inflectionals.rb |
iqvoc_inflectionals-2.11.3 | db/migrate/20120109143704_create_inflectionals.rb |