Sha256: 088f08ea036ef5e13351d722fd3a2849bd8f71ce6afb78d406cbc92998929ae4

Contents?: true

Size: 893 Bytes

Versions: 103

Compression:

Stored size: 893 Bytes

Contents

class CreateGeminiMyRules < McflyMigration
  include Marty::Migrations
  def change()
    create_table :gemini_my_rules do |t|
      t.string :name, null: false
      t.column :rule_type, :my_rule_type, null: false
      t.datetime :start_dt, null: false
      t.datetime :end_dt, null: true
      t.string :engine, null: false, default: 'Gemini::MyRuleScriptSet'
      t.boolean :other_flag
      t.jsonb :simple_guards,    null: false, default: {}
      t.json  :computed_guards,  null: false, default: {}
      t.jsonb :grids,            null: false, default: {}
      t.json  :results,          null: false, default: {}
      t.jsonb :fixed_results,    null: false, default: {}
    end
    execute("CREATE OR REPLACE FUNCTION to_numrange(val text) "\
            "RETURNS numrange AS "\
            "$BODY$ select numrange(val); $BODY$ "\
            "LANGUAGE SQL IMMUTABLE;")
   end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
marty-5.1.3 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-5.1.2 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-5.1.1 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-5.1.0 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-3.1.0 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-3.0.1 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-4.0.0.rc2 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-3.0.0 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.9.3 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.9.2 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.9.1 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.8.0 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.7.3 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.7.2 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.7.1 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.7.0 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.6.8 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.6.7 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.6.6 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb
marty-2.6.5 spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb