Sha256: 2bd3ec8bea5d06e6c19a8c06ac2f5b34b0af75ab50b8ce1ede69d8450bd1c90e

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

class CreateC80ItemProps < ActiveRecord::Migration
  def change
    create_table :c80_estate_item_props, :options => 'COLLATE=utf8_unicode_ci' do |t|
      t.string :value
      t.references :area, index: true
      t.references :property, index: true
      t.references :prop_name, index: true

      t.timestamps null: false
    end
    # add_foreign_key :c80_item_props, :areas
    # add_foreign_key :c80_item_props, :prop_names
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_estate-0.1.0 db/migrate/20160629092323_create_c80_item_props.rb