blob: 21df988791042ba172a7214d1a6edd05c6188720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class CreateHerds < ActiveRecord::Migration
def self.up
create_table :herds do |t|
t.column :name, :string
t.column :email, :string
t.column :description, :text
end
create_table :developers_herds, :id => false do |t|
t.column :developer_id, :integer
t.column :herd_id, :integer
end
end
def self.down
drop_table :herds
drop_table :developers_herds
end
end
|