Adds migrations & models for administrators & moderators

This commit is contained in:
kikito
2015-08-07 17:04:50 +02:00
parent a0140f6dda
commit 3378790764
5 changed files with 41 additions and 1 deletions

View 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

View 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