Displaying 1 result from an estimated 1 matches for "functional_right".
Did you mean:
functional_rights
2006 Aug 18
1
Migration crashes when using braces to delimit blocks
...braces, the
migration crashes, whereas the exact same code with the braces replaced by
do/end runs fine. Does anybody have any idea why this would be?
Thanks,
Michael.
========== Migration Code: ==========
class SimplifiedVersion < ActiveRecord::Migration
def self.up
create_table :functional_rights { |t| # A table storing the actions on a
given controller that a given right allows a user to perform.
t.column :name, :string, :null => false
t.column :controller, :string, :null => false
t.column :action, :string, :null => false
}
end
def self.down
drop_table :functio...