This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-02-02 19:57:35 -05:00
|
|
|
class CreateExperiences < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :experiences do |t|
|
|
|
|
t.column :people_id, :integer
|
|
|
|
t.column :beer_id, :integer
|
|
|
|
t.column :rating, :integer
|
2008-02-02 20:28:48 -05:00
|
|
|
t.column :created_at, :timestamp
|
2008-02-02 19:57:35 -05:00
|
|
|
end
|
|
|
|
add_index :experiences, :people_id
|
|
|
|
add_index :experiences, :beer_id
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :experiences
|
|
|
|
end
|
|
|
|
end
|