Created
April 3, 2014 13:38
-
-
Save mamhoff/9954522 to your computer and use it in GitHub Desktop.
Resource model migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddLocations < ActiveRecord::Migration | |
def change | |
create_table :locations do |t| | |
t.string :title, limit: 64 | |
t.integer :picture_id | |
t.string :subtitle, limit: 64 | |
t.string :street, limit: 128 | |
t.string :number, limit: 16 | |
t.string :postal_code, limit: 10 | |
t.string :city, limit: 64 | |
t.string :url, limit: 128 | |
t.string :phone, limit: 32 | |
t.string :email, limit: 64 | |
t.text :description | |
t.string :lat, limit: 16 | |
t.string :lon, limit: 16 | |
t.timestamps | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment