Sha256: 718571749b2bde303931571bc9fb3c5b6c8c2a4eef556c018af2ae9e546120e7

Contents?: true

Size: 450 Bytes

Versions: 9

Compression:

Stored size: 450 Bytes

Contents

class CreatePwbContents < ActiveRecord::Migration[5.0]
  def change
    create_table :pwb_contents do |t|
      t.string :key
      t.string :tag
      # t.text :raw

      t.string :input_type
      t.string :status
      t.integer :last_updated_by_user_id

      # To allow ordering of content
      t.integer :sort_order
      t.string :target_url

      t.timestamps null: false
    end

    add_index :pwb_contents, :key, unique: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pwb-1.4.0 db/migrate/20161107210046_create_pwb_contents.rb
pwb-1.3.0 db/migrate/20161107210046_create_pwb_contents.rb
pwb-1.2.0 db/migrate/20161107210046_create_pwb_contents.rb
pwb-1.1.1 db/migrate/20161107210046_create_pwb_contents.rb
pwb-1.0.0 db/migrate/20161107210046_create_pwb_contents.rb
pwb-0.1.1 db/migrate/20161107210046_create_pwb_contents.rb
pwb-0.1.0 db/migrate/20161107210046_create_pwb_contents.rb
pwb-0.0.2 db/migrate/20161107210046_create_pwb_contents.rb
pwb-0.0.1 db/migrate/20161107210046_create_pwb_contents.rb