Sha256: 3b69c3467fb3c972eef8b84b9878d567c8e6aa106240d7a0ac6228c441a47197

Contents?: true

Size: 385 Bytes

Versions: 37

Compression:

Stored size: 385 Bytes

Contents

class CreateListingProviders < ActiveRecord::Migration
  def change
    create_table :listing_providers, options: 'DEFAULT CHARSET=utf8' do |t|
      t.string :name, null: false
      t.string :url
      t.references :source_provider_category, null: false, index: true

      t.timestamps
    end
    add_index :listing_providers, :name
    add_index :listing_providers, :url
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
reso-0.1.6.7 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.6 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.5 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.4 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.3 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.2 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6.1 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.6 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.11 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.10 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.9 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.7 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.6 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.5 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.4 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.3 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.2 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.1 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.5.0 lib/generators/reso/templates/create_listing_providers.rb
reso-0.1.4.10 lib/generators/reso/templates/create_listing_providers.rb