This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/db/migrate/015_create_invitations.rb

15 lines
339 B
Ruby

class CreateInvitations < ActiveRecord::Migration
def self.up
create_table :invitations do |t|
t.column :code, :string, :limit => 32
t.column :people_id, :integer
t.column :sent, :boolean, :default => false
end
add_index :invitations, :people_id
end
def self.down
drop_table :invitations
end
end