This post originated from an RSS feed registered with Ruby Buzz
by Agnieszka Figiel.
Original Post: Bizarre migration
Feed Title: agnessa's blog
Feed URL: http://blog.agnessa.eu/xml/rss/feed.xml
Feed Description: ruby and rails impressions from a beginner developer
noticed something funny (actually my students did):
script/generate sigration create_books
(mind the typo)
result:
class CreateBooks < ActiveRecord::Migration
def self.up
create_table :sessions do |t|
t.column :session_id, :string
t.column :data, :text
t.column :updated_at, :datetime
end
add_index :sessions, :session_id
end
def self.down
drop_table :sessions
end
end