-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacy with rails4 branch 'changed' issue #367
Comments
Use |
Hi, #182 has been merged in v1.5.0 release which just supports Rails 4. You can have a column name Would you tell me the exact rails version? |
Hi I am using Rails 4.0.0 and v1.5.0. I just upgraded to 4.0.1 and I am testing to let you know if something has changed. |
Ok I still get Rails 4.0.0 and 4.0.1 |
Thanks for the update. It's my bad. #182 has nothing to do with your question, it allows to create a column named "FIELD". I also find Rails 4.0.1 with sqlite3 as database, $ rails g scaffold item name:string changed:string So I can say there is no oracle-enhanced specific tips to create a table with As @PavelPenkov kindly commented to use or contact https://groups.google.com/forum/#!forum/rubyonrails-talk mailing list for wider knowledge. |
Ok thanks. It looks like I can set the column to ignore in my case. So there is also no way to set an alias for a column name, sort of like an changed AS mychanged? |
@PavelPenkov @yahonda safe_attributes is not supported by Rails 4 as per bjones/safe_attributes#9 so that is not going to help but I would close the issue since it is not related to oracle enhanced but rather ActiveRecord ... |
Closed. |
I have a legacy table with a column name
changed
which is reserved by ActiveRecordActiveRecord::DangerousAttributeError in Events#show
changed is defined by Active Record
How can I tell oracle enhanced adapter to use a different name for that column name?
Is there something like
self.column_name changed, AS othername
It would also be good to have this in the legacy documentation if it exists ...
The text was updated successfully, but these errors were encountered: