Sha256: 98c40ea06480ba565203431c9e6fbe0280e222ce7224898860833ddfbfd27b91
Contents?: true
Size: 722 Bytes
Versions: 14
Compression:
Stored size: 722 Bytes
Contents
class CreateUpdateableViewsInheritance < ActiveRecord::Migration def up create_table(:updateable_views_inheritance, :id => false) do |t| t.column :parent_relation, :string, :null => false t.column :child_aggregate_view, :string, :null => false t.column :child_relation, :string, :null => false end execute "ALTER TABLE updateable_views_inheritance ADD PRIMARY KEY (parent_relation, child_aggregate_view, child_relation)" execute "ALTER TABLE updateable_views_inheritance ADD UNIQUE (child_aggregate_view)" execute "ALTER TABLE updateable_views_inheritance ADD UNIQUE (parent_relation, child_aggregate_view)" end def down drop_table :updateable_views_inheritance end end
Version data entries
14 entries across 14 versions & 1 rubygems