Group entity. Group has many projects
This commit is contained in:
parent
2e1c3c52bc
commit
fa3ae24ca7
8 changed files with 116 additions and 1 deletions
11
db/migrate/20121002150926_create_groups.rb
Normal file
11
db/migrate/20121002150926_create_groups.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateGroups < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :groups do |t|
|
||||
t.string :name, null: false
|
||||
t.string :code, null: false
|
||||
t.integer :owner_id, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue