Added lodging backend
This commit is contained in:
parent
b1c171cd97
commit
4cc039b358
13 changed files with 164 additions and 1 deletions
14
db/migrate/20140604061951_create_lodgings.rb
Normal file
14
db/migrate/20140604061951_create_lodgings.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class CreateLodgings < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :lodgings do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.string :photo_file_name
|
||||
t.string :photo_content_type
|
||||
t.integer :photo_file_size
|
||||
t.datetime :photo_updated_at
|
||||
t.belongs_to :venue
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue