Commit 37d34f0c0ef22f7d497b5d348fbbe61d9160ba3f

Authored by MoisesMachado
1 parent 76032e0e

ActionItem677: fixed

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/branches/0.11.x@2508 3f533792-8f58-4932-b0fe-aaf55b0a4547
db/migrate/055_change_column_roles_permissons_to_text.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class ChangeColumnRolesPermissonsToText < ActiveRecord::Migration
  2 + def self.up
  3 + change_column :roles, :permissions, :text
  4 + end
  5 +
  6 + def self.down
  7 + change_column :roles, :permissions, :string
  8 + end
  9 +end
... ...
db/schema.rb
... ... @@ -9,7 +9,7 @@
9 9 #
10 10 # It's strongly recommended to check this file into your version control system.
11 11  
12   -ActiveRecord::Schema.define(:version => 54) do
  12 +ActiveRecord::Schema.define(:version => 55) do
13 13  
14 14 create_table "article_versions", :force => true do |t|
15 15 t.integer "article_id"
... ... @@ -246,9 +246,9 @@ ActiveRecord::Schema.define(:version =&gt; 54) do
246 246  
247 247 create_table "roles", :force => true do |t|
248 248 t.string "name"
249   - t.string "permissions"
  249 + t.text "permissions", :limit => 255
250 250 t.string "key"
251   - t.boolean "system", :default => false
  251 + t.boolean "system", :default => false
252 252 end
253 253  
254 254 create_table "taggings", :force => true do |t|
... ...