Add status string attribute to games

This commit is contained in:
Jesse C. Fisher 2015-04-09 05:23:42 -07:00
parent 30a69fbca0
commit 1278f38814
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
%p
%b Status:
= @status
= @game.status
%p
%b Title:

View File

@ -0,0 +1,5 @@
class AddStatusToGames < ActiveRecord::Migration
def change
add_column :games, :status, :string
end
end

View File

@ -20,6 +20,7 @@ ActiveRecord::Schema.define(version: 20150104203850) do
t.string "title"
t.datetime "created_at"
t.datetime "updated_at"
t.string "status"
end
create_table "player_cards", force: true do |t|