Replace ordergroup.account_updated with non database attr.

This commit is contained in:
benni 2012-12-30 15:31:37 +01:00
parent a489079334
commit 28aec7e4d6
3 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,9 @@
class RemoveAccountUpdatedFromOrdergroups < ActiveRecord::Migration
def up
remove_column :groups, :account_updated
end
def down
add_column :groups, :account_updated, :datetime
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20121216180646) do
ActiveRecord::Schema.define(:version => 20121230142516) do
create_table "article_categories", :force => true do |t|
t.string "name", :default => "", :null => false
@ -137,7 +137,6 @@ ActiveRecord::Schema.define(:version => 20121216180646) do
t.string "name", :default => "", :null => false
t.string "description"
t.decimal "account_balance", :precision => 8, :scale => 2, :default => 0.0, :null => false
t.datetime "account_updated"
t.datetime "created_on", :null => false
t.boolean "role_admin", :default => false, :null => false
t.boolean "role_suppliers", :default => false, :null => false