Adds organization model
This commit is contained in:
parent
a95a03c7e5
commit
b63f3fa7c9
5 changed files with 84 additions and 10 deletions
16
db/migrate/20140605101748_create_organizations.rb
Normal file
16
db/migrate/20140605101748_create_organizations.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class CreateOrganizations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.string :phone_number
|
||||
t.string :website_url
|
||||
t.text :description
|
||||
t.string :logo_file_name
|
||||
t.string :logo_content_type
|
||||
t.integer :logo_file_size
|
||||
t.datetime :logo_updated_at
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue