Class: CreateAssets
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAssets
- Defined in:
- lib/generators/bumble/templates/migrations/create_assets.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/generators/bumble/templates/migrations/create_assets.rb', line 15 def self.down drop_table :assets end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/bumble/templates/migrations/create_assets.rb', line 2 def self.up create_table :assets do |t| t.integer :post_id t.string :attachment_file_name t.string :attachment_content_type t.integer :attachment_file_size t.datetime :attachment_updated_at t.string :attachment_remote_url t. end end |