Sha256: 64c86d533790d73a7cdbf7d31474e53c400afe7e1035a13d4ada8073910293b5
Contents?: true
Size: 999 Bytes
Versions: 18
Compression:
Stored size: 999 Bytes
Contents
# This migration comes from g5_updatable (originally 20161122070749) class AddAmenities < ActiveRecord::Migration[4.2] def change create_table :g5_updatable_hub_amenities do |t| t.integer :external_id t.string :name t.string :icon t.timestamp :external_updated_at t.timestamp :external_created_at t.timestamps end add_index :g5_updatable_hub_amenities, :external_id, unique: true create_table :g5_updatable_hub_amenities_locations do |t| t.belongs_to :g5_updatable_hub_amenity t.belongs_to :g5_updatable_location end add_index :g5_updatable_hub_amenities_locations, :g5_updatable_hub_amenity_id, name: 'updatable_amenities_loc_amen_id' add_index :g5_updatable_hub_amenities_locations, :g5_updatable_location_id, name: 'updatable_amenities_loc_loc_id' # we need this for queries that require a location to have ALL amenities in a list add_column :g5_updatable_locations, :flat_amenity_names, :string end end
Version data entries
18 entries across 18 versions & 1 rubygems