Adds lodging model

This commit is contained in:
Gopesh Tulsyan 2014-06-14 20:41:26 +05:30
parent f0b6c32a54
commit 029281a9ae
5 changed files with 48 additions and 1 deletions

View 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