Class: CreateAtriumCollections

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/atrium/templates/migrations/create_atrium_collections.rb

Class Method Summary collapse

Class Method Details

.downObject



17
18
19
# File 'lib/generators/atrium/templates/migrations/create_atrium_collections.rb', line 17

def self.down
  drop_table :atrium_collections
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/atrium/templates/migrations/create_atrium_collections.rb', line 2

def self.up
  create_table :atrium_collections do |t|
    t.string :title
    t.string :url_slug
    t.string :filter_query_params
    t.string :theme
    t.text :title_markup
    t.text :collection_description
    t.text :search_instructions
    t.text :collection_items
  end
  add_index :atrium_collections, :id
  add_index :atrium_collections, :url_slug
end