Adds migrations & models for administrators & moderators
This commit is contained in:
7
db/migrate/20150807140235_create_administrators.rb
Normal file
7
db/migrate/20150807140235_create_administrators.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class CreateAdministrators < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :administrators do |t|
|
||||
t.belongs_to :user, index: true, foreign_key: true
|
||||
end
|
||||
end
|
||||
end
|
||||
7
db/migrate/20150807140346_create_moderators.rb
Normal file
7
db/migrate/20150807140346_create_moderators.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class CreateModerators < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :moderators do |t|
|
||||
t.belongs_to :user, index: true, foreign_key: true
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user