aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMarc Florisson2015-02-03 12:26:37 +0100
committerMarc Florisson2015-02-03 12:26:37 +0100
commita98cf1bdae71922512abb284429c96777d01db18 (patch)
treee9f76cfa66b50e48b9061a1d3b3e34022e9e87a2 /db
parent04148815395986714ac6c1f98abcc23744cb97eb (diff)
downloadchouette-core-a98cf1bdae71922512abb284429c96777d01db18.tar.bz2
first refactor to add rule parameter set to organisation
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150129170104_add_organisation_id_rule_parameter_set.rb9
-rw-r--r--db/schema.rb9
2 files changed, 14 insertions, 4 deletions
diff --git a/db/migrate/20150129170104_add_organisation_id_rule_parameter_set.rb b/db/migrate/20150129170104_add_organisation_id_rule_parameter_set.rb
new file mode 100644
index 000000000..8b3f52caf
--- /dev/null
+++ b/db/migrate/20150129170104_add_organisation_id_rule_parameter_set.rb
@@ -0,0 +1,9 @@
+class AddOrganisationIdRuleParameterSet < ActiveRecord::Migration
+ def up
+ add_column :rule_parameter_sets, :organisation_id, :integer, :limit => 8
+ end
+
+ def down
+ remove_column :rule_parameter_sets, :organisation_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index fdcc40582..b49ca789f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20150121144108) do
+ActiveRecord::Schema.define(:version => 20150129170104) do
create_table "access_links", :force => true do |t|
t.integer "access_point_id", :limit => 8
@@ -384,11 +384,12 @@ ActiveRecord::Schema.define(:version => 20150121144108) do
end
create_table "rule_parameter_sets", :force => true do |t|
- t.integer "referential_id", :limit => 8
+ t.integer "referential_id", :limit => 8
t.text "parameters"
t.string "name"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.integer "organisation_id", :limit => 8
end
create_table "stop_areas", :force => true do |t|