forked from bofh/fetsite
Introducing Lecturers
This commit is contained in:
12
db/migrate/20130819132647_create_lecturers.rb
Normal file
12
db/migrate/20130819132647_create_lecturers.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateLecturers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :lecturers do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.integer :oid
|
||||
t.string :picture
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/migrate/20130819133111_create_lecturers_lvas.rb
Normal file
13
db/migrate/20130819133111_create_lecturers_lvas.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateLecturersLvas < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :lecturers_lvas, :id=> false do |t|
|
||||
t.integer :lecturer_id
|
||||
t.integer :lva_id
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user