mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-21 17:29:59 +00:00
Merge branch 'master' into brand
This commit is contained in:
8
db/migrate/20180829122818_create_chat_rooms.rb
Normal file
8
db/migrate/20180829122818_create_chat_rooms.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class CreateChatRooms < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :chat_rooms do |t|
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
10
db/migrate/20180829122930_create_chat_room_participations.rb
Normal file
10
db/migrate/20180829122930_create_chat_room_participations.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateChatRoomParticipations < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :chat_room_participations do |t|
|
||||
t.references :user, foreign_key: true
|
||||
t.references :chat_room, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
11
db/migrate/20180829123049_create_requests.rb
Normal file
11
db/migrate/20180829123049_create_requests.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateRequests < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :requests do |t|
|
||||
t.references :user, foreign_key: true
|
||||
t.references :chat_room, foreign_key: true
|
||||
t.boolean :accepted
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
5
db/migrate/20180829123204_change_column_in_requests.rb
Normal file
5
db/migrate/20180829123204_change_column_in_requests.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class ChangeColumnInRequests < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column :requests, :accepted, :boolean, default: false
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user