Skip to content

Commit

Permalink
create games_libraries migration
Browse files Browse the repository at this point in the history
  • Loading branch information
CBElizabeth committed Apr 16, 2015
2 parents e152f9e + c59b56b commit 9d6d2f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20150416195849_create_games_categories.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class CreateGamesCategories < ActiveRecord::Migration
def change
create_table :games_categories do |t|
t.references :game, null: false
t.references :category, null: false
t.references :game
t.references :category
end
end
end
8 changes: 8 additions & 0 deletions db/migrate/20150416200305_create_games_libraries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CreateGamesLibraries < ActiveRecord::Migration
def change
create_table :games_libraries do |t|
t.references :game
t.references :library
end
end
end

0 comments on commit 9d6d2f2

Please sign in to comment.