Sha256: 1702a61b96b78b6b4fec0d04b35db56ea92ab2fd74b268d0691802ac59dcab4b

Contents?: true

Size: 295 Bytes

Versions: 9

Compression:

Stored size: 295 Bytes

Contents

class AddSites < ActiveRecord::Migration[5.1]
  def self.up
    [:layouts, :snippets, :users].each do |table|
      add_column table, :site_id, :integer
    end
  end

  def self.down
    [:layouts, :snippets, :users].each do |table|
      add_column table, :site_id, :integer
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
trusty-cms-3.3.2 db/migrate/023_add_sites.rb
trusty-cms-3.3.1 db/migrate/023_add_sites.rb
trusty-cms-3.2.1 db/migrate/023_add_sites.rb
trusty-cms-3.3.0 db/migrate/023_add_sites.rb
trusty-cms-3.2.0 db/migrate/023_add_sites.rb
trusty-cms-3.1.11 db/migrate/023_add_sites.rb
trusty-cms-3.1.10 db/migrate/023_add_sites.rb
trusty-cms-3.1.9 db/migrate/023_add_sites.rb
trusty-multi-site-extension-3.1.0 db/migrate/005_add_sites.rb