Sha256: 2013eff5ab65339657dbe3614f92b1910993f4427ee49b5e8684e3997e4ae3c3

Contents?: true

Size: 486 Bytes

Versions: 14

Compression:

Stored size: 486 Bytes

Contents

class AddUpdateableViewsInheritance < ActiveRecord::Migration
  def self.up
    create_table(:updateable_views_inheritance, :id => false) do |t|
      t.column :parent_relation, :string
      t.column :child_aggregate_view, :string
      t.column :child_relation, :string
    end

    execute "ALTER TABLE updateable_views_inheritance ADD PRIMARY KEY (parent_relation, child_aggregate_view, child_relation)"
  end

  def self.down
    drop_table :updateable_views_inheritance
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
updateable_views_inheritance-1.4.8 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.7 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.6 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.5 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.4 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.3 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.2 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.1 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.4.0 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.3.0 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.2.2 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.2.1 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.2.0 test/fixtures/migrations/1_add_updateable_views_inheritance.rb
updateable_views_inheritance-1.1.2 test/fixtures/migrations/1_add_updateable_views_inheritance.rb