Noosfero/noosfero

View on GitHub
plugins/custom_routes/db/migrate/20170403165936_create_route.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateRoute < ActiveRecord::Migration[5.1]
  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