Sha256: ad58143cdd3064bf0f2001cacea4ef415bee6fc17c633340457749d5f867dd67
Contents?: true
Size: 374 Bytes
Versions: 18
Compression:
Stored size: 374 Bytes
Contents
class CreateTimeSlot < ActiveRecord::Migration def self.up create_table :time_slots do |t| t.date :starts_at t.date :ends_at t.timestamps end create_table :positions do |t| t.belongs_to :user t.belongs_to :time_slot t.timestamps end end def self.down drop_table :time_slots drop_table :positions end end
Version data entries
18 entries across 18 versions & 1 rubygems