Skip to content

Instantly share code, notes, and snippets.

@codeschool-courses
Created September 14, 2011 18:32
Show Gist options
  • Save codeschool-courses/1217366 to your computer and use it in GitHub Desktop.
Save codeschool-courses/1217366 to your computer and use it in GitHub Desktop.
Rails Console Extra Credit
create_table(:tweets) do |t|
t.string :message
t.string :category_name
t.string :location, :limit => 30
t.boolean :show_location, :default => false
t.integer :zombie_id
end
create_table :zombies do |z|
z.string :name
end
class Tweet < ActiveRecord::Base
end
class Zombie < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment