Sha256: c01d7d8e9ea8f5408473ade712f97ed2c6d5e187a5a025703eb3261d63d88ed4

Contents?: true

Size: 498 Bytes

Versions: 9

Compression:

Stored size: 498 Bytes

Contents

class SetUpTestingDb < ActiveRecord::Migration[5.0]
  def change
    create_table :products do |t|
      t.jsonb :options
      t.jsonb :data

      t.string :string_type
      t.integer :integer_type
      t.integer :product_category_id
      t.boolean :boolean_type
      t.float :float_type
      t.time :time_type
      t.date :date_type
      t.datetime :datetime_type
      t.decimal :decimal_type
    end

    create_table :product_categories do |t|
      t.jsonb :options
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jsonb_accessor-1.3.0 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.2.0 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.1.0 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0.beta.7 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0.beta.6 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0.beta.5 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0.beta.4 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.0.0.beta.3 db/migrate/20150407031737_set_up_testing_db.rb