13 lines
253 B
Ruby
13 lines
253 B
Ruby
class CreateAlbum < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :albums do |t|
|
|
t.string :title, :length => 250, :null => false
|
|
t.text :description
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :albums
|
|
end
|
|
end
|