Class: CreatePaprs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePaprs
- Defined in:
- app/migrations/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/migrations/migration.rb', line 2 def change create_table :paprs do |t| t.text :content t.text :user t.integer :article_id t.integer :papr_id t. end end |