forked from External/greenlight
initial commit
This commit is contained in:
13
db/migrate/20180504131648_create_users.rb
Normal file
13
db/migrate/20180504131648_create_users.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class CreateUsers < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :provider, null: false
|
||||
t.string :uid, null: false
|
||||
t.string :name
|
||||
t.string :username
|
||||
t.string :email
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
10
db/migrate/20180504131705_create_rooms.rb
Normal file
10
db/migrate/20180504131705_create_rooms.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class CreateRooms < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :rooms do |t|
|
||||
t.belongs_to :user, index: true
|
||||
t.string :uid, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
11
db/migrate/20180504131713_create_meetings.rb
Normal file
11
db/migrate/20180504131713_create_meetings.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class CreateMeetings < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :meetings do |t|
|
||||
t.belongs_to :room, index: true
|
||||
t.string :name, null: false
|
||||
t.string :uid, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user