This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
|
class CreateBeers < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :beers do |t|
|
|
t.column :title, :string
|
|
t.column :abv, :float
|
|
t.column :original_gravity, :float
|
|
t.column :final_gravity, :float
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :beers
|
|
end
|
|
end
|