Skip to content

Commit

Permalink
adding migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
DasDingGehtNicht committed Dec 12, 2014
1 parent 7d42f99 commit 7294a78
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions db/migrate/20141126141311_create_event_templats_rooms.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CreateEventTemplatsRooms < ActiveRecord::Migration
def change
create_table :event_templates_rooms do |t|
t.belongs_to :event_template
t.belongs_to :room
end
end
end
5 changes: 5 additions & 0 deletions db/migrate/20141208110258_add_event_suggestions_to_rooms.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddEventSuggestionsToRooms < ActiveRecord::Migration
def change
add_reference :rooms, :event_suggestion, index: true
end
end

0 comments on commit 7294a78

Please sign in to comment.