14 lines
256 B
Ruby
14 lines
256 B
Ruby
class CreateCollections < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :collections do |t|
|
|
t.string :title, :null => false
|
|
t.string :description
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :collections
|
|
end
|
|
end
|