Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateArticles < ActiveRecord::Migration
- def self.up
- create_table :articles do |t|
- t.string :title
- t.text :content, :limit => 64.kilobytes + 1
- t.timestamps
- end
- end
- def self.down
- drop_table :articles
- end
- end
Add Comment
Please, Sign In to add comment