Sha256: b0a5acf323e73bace17dea5577f082b79e8e3359eb550155a3b6e2f894fcf8e3

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

class CreateApicassoTables < ActiveRecord::Migration[5.0]
  def change
    execute <<-SQL
      CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
    SQL
    create_table :apicasso_keys, id: :uuid do |t|
      t.json :scope
      t.integer :scope_type
      t.json :request_limiting
      t.text :token
      t.datetime :deleted_at
      t.timestamps null: false
    end
    create_table :apicasso_requests, id: :uuid do |t|
      t.text :api_key_id
      t.json :object
      t.timestamps null: false
    end
  end
end

Version data entries

11 entries across 6 versions & 1 rubygems

Version Path
apicasso-0.4.5 lib/generators/apicasso/install/templates/create_apicasso_tables.rb
apicasso-0.4.5 db/migrate/20180826141433_create_apicasso_tables.rb
apicasso-0.4.4 db/migrate/20180826141433_create_apicasso_tables.rb
apicasso-0.4.4 lib/generators/apicasso/install/templates/create_apicasso_tables.rb
apicasso-0.4.3 db/migrate/20180826141433_create_apicasso_tables.rb
apicasso-0.4.3 lib/generators/apicasso/install/templates/create_apicasso_tables.rb
apicasso-0.4.2 lib/generators/apicasso/install/templates/create_apicasso_tables.rb
apicasso-0.4.2 db/migrate/20180826141433_create_apicasso_tables.rb
apicasso-0.4.1 db/migrate/20180826141433_create_apicasso_tables.rb
apicasso-0.4.1 lib/generators/apicasso/install/templates/create_apicasso_tables.rb
apicasso-0.4.0 db/migrate/20180826141433_create_apicasso_tables.rb