Sha256: 8920d51003b6830f2fc5f8c93d86fc9b33cb3859b379b3e7cef1a0716b19b46d

Contents?: true

Size: 418 Bytes

Versions: 59

Compression:

Stored size: 418 Bytes

Contents

class CreateParaComponents < ActiveRecord::Migration
  def up
    execute 'CREATE EXTENSION IF NOT EXISTS hstore'

    create_table :para_components do |t|
      t.string :type
      t.string :name
      t.hstore :configuration, default: '', null: false
      t.integer :position, default: 0
      t.integer :component_section_id

      t.timestamps
    end
  end

  def down
    drop_table :para_components
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
para-0.8.12 db/migrate/20140911091225_create_para_components.rb
para-0.8.11 db/migrate/20140911091225_create_para_components.rb
para-0.8.10 db/migrate/20140911091225_create_para_components.rb
para-0.8.9 db/migrate/20140911091225_create_para_components.rb
para-0.8.8 db/migrate/20140911091225_create_para_components.rb
para-0.8.7 db/migrate/20140911091225_create_para_components.rb
para-0.8.5 db/migrate/20140911091225_create_para_components.rb
para-0.8.3.3 db/migrate/20140911091225_create_para_components.rb
para-0.8.3.2 db/migrate/20140911091225_create_para_components.rb
para-0.8.3.1 db/migrate/20140911091225_create_para_components.rb
para-0.8.3 db/migrate/20140911091225_create_para_components.rb
para-0.8.2.3 db/migrate/20140911091225_create_para_components.rb
para-0.8.2.2 db/migrate/20140911091225_create_para_components.rb
para-0.8.2.1 db/migrate/20140911091225_create_para_components.rb
para-0.8.2 db/migrate/20140911091225_create_para_components.rb
para-0.8.1 db/migrate/20140911091225_create_para_components.rb
para-0.8.0 db/migrate/20140911091225_create_para_components.rb
para-0.7.4.p1 db/migrate/20140911091225_create_para_components.rb
para-0.7.4 db/migrate/20140911091225_create_para_components.rb
para-0.7.3.p6 db/migrate/20140911091225_create_para_components.rb