First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
18
db/migrate/20130105115603_create_event_attachments_table.rb
Normal file
18
db/migrate/20130105115603_create_event_attachments_table.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class CreateEventAttachmentsTable < ActiveRecord::Migration
|
||||
def up
|
||||
create_table :event_attachments do |t|
|
||||
t.references :event
|
||||
t.string :title, :null => false
|
||||
t.string :attachment_file_name
|
||||
t.string :attachment_content_type
|
||||
t.integer :attachment_file_size
|
||||
t.datetime :attachment_updated_at
|
||||
t.boolean :public, :default => true
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :event_attachments
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue