--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Migrates the supplied database using the migration files in the the specified directory. Options:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":column - The column in the :table argument storing the migration version (default: :version)."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":current - The current version of the database. If not given, it is retrieved from the database using the :table and :column options."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":table - The table containing the schema version (default: :schema_info)."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: ":target - The target version to which to migrate. If not given, migrates to the maximum version."
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Sequel::Migrator.run(DB, &quot;migrations&quot;)\n  Sequel::Migrator.run(DB, &quot;migrations&quot;, :target=&gt;15, :current=&gt;10)\n  Sequel::Migrator.run(DB, &quot;app1/migrations&quot;, :column=&gt; :app2_version)\n  Sequel::Migrator.run(DB, &quot;app2/migrations&quot;, :column =&gt; :app2_version, :table=&gt;:schema_info2)\n"
full_name: Sequel::Migrator::run
is_singleton: true
name: run
params: (db, directory, opts={})
visibility: public
