cirandas.net

ref: master

plugins/custom_routes/db/migrate/20170403165936_create_route.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class CreateRoute < ActiveRecord::Migration
  def change
    create_table :custom_routes_plugin_routes do |t|
      t.integer :environment_id, null: false
      t.string :source_url, null: false, unique: true
      t.string :target_url, null: false
      t.boolean :enabled, default: true
    end
  end
end