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.4.9 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.8 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.7 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.6 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.5 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.4 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.3 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.2 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.1 lib/generators/reso/templates/create_businesses.rb
reso-0.1.4.0 lib/generators/reso/templates/create_businesses.rb
reso-0.1.3.1 lib/generators/reso/templates/create_businesses.rb
reso-0.1.3.0 lib/generators/reso/templates/create_businesses.rb
reso-0.1.2.0 lib/generators/reso/templates/create_businesses.rb
reso-0.1.1.0 lib/generators/reso/templates/create_businesses.rb
reso-0.1.0.3 lib/generators/reso/templates/create_businesses.rb
reso-0.1.0.2 lib/generators/reso/templates/create_businesses.rb
reso-0.1.0.1 lib/generators/reso/templates/create_businesses.rb