Guest User

Untitled

a guest
Apr 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class CreateArticles < ActiveRecord::Migration
  2. def self.up
  3. create_table :articles do |t|
  4. t.string :title
  5. t.text :content, :limit => 64.kilobytes + 1
  6. t.timestamps
  7. end
  8. end
  9.  
  10. def self.down
  11. drop_table :articles
  12. end
  13. end
Add Comment
Please, Sign In to add comment