Sha256: ff0a78ee144df1fcc1b8dc8928bdc063050bfa744fe24ec63d52ecf9cc29e704

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

class CreateLocations < ActiveRecord::Migration
  def change
    create_table :locations do |t|
      t.string :name, null: false
      t.string :kind
      t.integer :parent_location_id, index: true, foreign_key: false
      t.integer :unreflected_id, index: true, foreign_key: false

      t.timestamps null: false
    end
    add_index :locations, [:parent_location_id,:kind,:name], unique: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
introspective_admin-0.9.0 spec/dummy/db/migrate/20150601200526_create_locations.rb
introspective_admin-0.0.8 spec/dummy/db/migrate/20150601200526_create_locations.rb
introspective_admin-0.0.7 spec/dummy/db/migrate/20150601200526_create_locations.rb
introspective_admin-0.0.6 spec/dummy/db/migrate/20150601200526_create_locations.rb
introspective_admin-0.0.5 spec/dummy/db/migrate/20150601200526_create_locations.rb