Sha256: 427565cf23a735ad736a52efbc104fdfafa3a2dfaff5c672f01d105fa1f03146

Contents?: true

Size: 233 Bytes

Versions: 27

Compression:

Stored size: 233 Bytes

Contents

class AddTemplateToBookings < ActiveRecord::Migration
  def change
    add_column :bookings, :template_id, :integer
    add_column :bookings, :template_type, :string

    add_index :bookings, [:template_id, :template_type]
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
has_accounts-3.1.0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-3.0.0.beta3 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-3.0.0.beta2 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-3.0.0.beta1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-3.0.0.beta0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-2.1.0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-2.0.3 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-2.0.2 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-2.0.1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-2.0.0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.1.3 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.1.2 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.1.1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.0.2 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.0.1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-1.0.0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-0.20.1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-0.20.0 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-0.19.1 db/migrate/20111230222702_add_template_to_bookings.rb
has_accounts-0.19.0 db/migrate/20111230222702_add_template_to_bookings.rb