Sha256: 924540876cdb60f9cfba3343ceb7a6627315a9557a73b91309c6aeb69a4b9b03

Contents?: true

Size: 467 Bytes

Versions: 37

Compression:

Stored size: 467 Bytes

Contents

class CreateBusinesses < ActiveRecord::Migration
  def change
    create_table :businesses, options: 'DEFAULT CHARSET=utf8' do |t|
      t.string :name, null: false
      t.string :type, null: false
      t.string :phone
      t.string :fax
      t.string :email
      t.string :website_url
      t.string :logo_url
      t.string :business_additional_information

      t.timestamps
    end
    add_index :businesses, :name
    add_index :businesses, :type
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

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