Class: CreateAtriumEssays
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAtriumEssays
- Defined in:
- lib/generators/atrium/templates/migrations/create_atrium_essays.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/generators/atrium/templates/migrations/create_atrium_essays.rb', line 12 def self.down drop_table :atrium_contents end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/atrium/templates/migrations/create_atrium_essays.rb', line 2 def self.up create_table :atrium_essays do |t| t.integer :atrium_description_id, :null=>false t.string :content_type t.text :content end add_index :atrium_essays, :id add_index :atrium_essays, :atrium_description_id end |