You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
341 B
16 lines
341 B
class CreateAttachments < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :attachments do |t|
|
|
t.column :file_name, :string
|
|
t.column :content_type, :string
|
|
t.column :last_modified, :datetime
|
|
t.column :description, :text
|
|
t.column :size, :int
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :attachments
|
|
end
|
|
end
|