Sha256: f6517ec4bd28f5328fc78b5b60ade6e5b2ae98a5e902b5cde7475d748e90b3f6

Contents?: true

Size: 407 Bytes

Versions: 33

Compression:

Stored size: 407 Bytes

Contents

class CreateSiteAttributes < ActiveRecord::Migration
  def self.up
    create_table('site_attributes', :options => Zena::Db.table_options) do |t|
      t.column 'owner_id', :integer
      t.column 'key', :string
      t.column 'value', :text
    end
    add_index 'site_attributes', 'owner_id'
  end

  def self.down
    remove_index 'site_attributes', 'owner_id'
    drop_table 'site_attributes'
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.0.0.beta2 db/migrate/038_create_site_attributes.rb
zena-1.0.0.beta1 db/migrate/038_create_site_attributes.rb
zena-0.16.7 db/migrate/038_create_site_attributes.rb
zena-0.16.6 db/migrate/038_create_site_attributes.rb
zena-0.16.5 db/migrate/038_create_site_attributes.rb
zena-0.16.4 db/migrate/038_create_site_attributes.rb
zena-0.16.3 db/migrate/038_create_site_attributes.rb
zena-0.16.2 db/migrate/038_create_site_attributes.rb
zena-0.16.1 db/migrate/038_create_site_attributes.rb
zena-0.16.0 db/migrate/038_create_site_attributes.rb
zena-0.15.2 db/migrate/038_create_site_attributes.rb
zena-0.15.1 db/migrate/038_create_site_attributes.rb
zena-0.15.0 db/migrate/038_create_site_attributes.rb