Sha256: 0698f54a857b2ce4790a085d443ff90d5f976928f1dbe4d2f25742c1e8b46f1a

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

class AddColumnsToCasContents < ActiveRecord::Migration[5.0]
  def change
    add_column :cas_contents, :pageviews, :integer
    add_column :cas_contents, :metadata, :jsonb, default: '{}'
    add_column :cas_contents, :summary, :text
    add_column :cas_contents, :details, :jsonb, default: '{}'
    add_column :cas_contents, :slug, :string
    change_column :cas_contents, :section_id, :uuid, null: false
    change_column :cas_contents, :author_id, :uuid, null: false
    add_index :cas_contents, :slug
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170614171928_add_columns_to_cas_contents.rb
cas-cms-1.0.0.alpha1 db/migrate/20170614171928_add_columns_to_cas_contents.rb
cas-cms-0.1.3 db/migrate/20170614171928_add_columns_to_cas_contents.rb
cas-cms-0.1.2 db/migrate/20170614171928_add_columns_to_cas_contents.rb
cas-cms-0.1.1 db/migrate/20170614171928_add_columns_to_cas_contents.rb
cas-cms-0.1.0 db/migrate/20170614171928_add_columns_to_cas_contents.rb