Sha256: f35136e89c1fe748cf2e5d18d4ffab3ef8a25ea8b94dd8823a473d5622353e3c

Contents?: true

Size: 254 Bytes

Versions: 10

Compression:

Stored size: 254 Bytes

Contents

class CreateAnnouncementCities < ActiveRecord::Migration[5.2]
  def change
    create_table :announcement_cities do |t|
      t.references :announcement, foreign_key: true
      t.references :city, foreign_key: true

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authz-0.0.5 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.4 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.3 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.2 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1.alpha5 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1.alpha4 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1.alpha3 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1.alpha2 spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb
authz-0.0.1.alpha spec/dummy/db/migrate/20190104080155_create_announcement_cities.rb