Sha256: 92420010455e5841279d6b9c83655970b0bf6bceef4fc9960cc3d0b25a433f1b

Contents?: true

Size: 373 Bytes

Versions: 40

Compression:

Stored size: 373 Bytes

Contents

class CreateJoinTableAreasAstatuses < ActiveRecord::Migration
  def change
    create_table :c80_estate_areas_astatuses, :id => false do |t|
      t.integer :area_id, :null => false
      t.integer :astatus_id, :null => false
    end

    # Add table index
    add_index :c80_estate_areas_astatuses, [:astatus_id, :area_id], :unique => true, :name => 'my_index'

  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
c80_estate-0.1.0.39 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.38 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.37 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.36 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.35 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.34 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.33 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.32 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.31 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.30 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.29 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.28 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.27 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.26 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.25 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.24 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.23 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.22 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.21 db/migrate/20160630013636_create_join_table_areas_astatuses.rb
c80_estate-0.1.0.20 db/migrate/20160630013636_create_join_table_areas_astatuses.rb