Hello Jeremy, thanks for providing me your experience and quick
response!
Here is my migration, sorry for being such a newb....
[loluser@fedora migrate]$ cat 20120527225053_create_pets.rb
class CreatePets < ActiveRecord::Migration
belongs_to :admin
def self.up
create_table :pets do |t|
t.string :location
t.string :public_key
t.timestamps
end
end
def self.down
drop_table :pets
end
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment