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.2.8 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.7 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.6 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.5 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.4 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.3 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.2 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.1 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.2.0 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.1.3 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.1.2 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.1.1 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.1.0 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.0.0 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.0.0.rc3 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.0.0.rc2 db/fix/old_migrations/038_create_site_attributes.rb
zena-1.0.0.rc1 db/fix/old_migrations/038_create_site_attributes.rb
zena-0.16.9 db/migrate/038_create_site_attributes.rb
zena-1.0.0.beta3 db/migrate/038_create_site_attributes.rb
zena-0.16.8 db/migrate/038_create_site_attributes.rb