Sha256: 0e86f410217462977b3a1e0f506dc24b3846967d480047ad1ad4c2a4ade246b2

Contents?: true

Size: 312 Bytes

Versions: 28

Compression:

Stored size: 312 Bytes

Contents

class CreateCalendars < ActiveRecord::Migration
  def change
    create_table :calendars do |t|
      t.references :tenant
      t.references :team
      t.datetime :cal_start
      t.datetime :cal_end

      t.timestamps
    end
    add_index :calendars, :tenant_id
    add_index :calendars, :team_id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
milia-0.3.38 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.34 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.33 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.32 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.31 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.30 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.29 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.28 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.27 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.26 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.25 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.24 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.23 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.22 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.21 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.20 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.19 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.18 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.17 test/rails_app/db/migrate/20111013050558_create_calendars.rb
milia-0.3.16 test/rails_app/db/migrate/20111013050558_create_calendars.rb