search for: composite_primary_key

Displaying 6 results from an estimated 6 matches for "composite_primary_key".

Did you mean: composite_primary_keys
2014 May 15
0
composite primary key - Rails 4.1
...gem 'rails', '>= 4.1.0.rc2' gem 'mysql2' gem 'rb-readline', "~> 0.5.1" gem 'sdoc', '~> 0.4.0', group: :doc gem 'spring', group: :development gem 'bcrypt', '~> 3.1.7' gem 'composite_primary_keys', { :git => 'git://github.com/composite-primary-keys/composite_primary_keys.git', :branch => 'ar_4.1.x' } When I tried running rails server, I get the below error Exiting /home/samanth/.bundler/ruby/2.1.0/composite_primary_keys-82db7315760f/lib/composite_pr...
2009 May 26
6
dump and import MySQL table w/ accents
I am switching to a composite primary key (string and user ID) from the Rails conventional auto-incrementing integer primary ID. The table is large (2.5 million records) and I''d rather not discard the contents. The composite_primary_key gem doesn''t appear to support altering the table with a migration to do its magic, only creating a table from scratch. So I dumped the table with mysqldump, ran the migration (table looks good), and am trying to repopulate the table. It has accented characters and is complaining about du...
2012 Jan 05
3
composite keys and association
i have two table, comment and post, both have composite keys, and no id column, comment belongs to post, i follow the instruction of http://compositekeys.rubyforge.org/, and it seems successfully, (But i still cant confirm to put require ''rubygems'' and require ''composite_primary_keys'' on which file ). I can do the CRUD operation for post,then i want to create comment form, in the _form.html.erb, the code likes below: <%= form_for([@post, @post.comments.build]) do |f| %> then i got an error,"unknown attribute: comment_id", i think the build method need...
2011 Nov 02
3
form_for text_field
...actionpack (3.1.1, 2.3.5) activemodel (3.1.1, 3.0.3) activerecord (2.3.5) activerecord-oracle_enhanced-adapter (1.3.0) activeresource (2.3.5) activesupport (3.1.1, 3.0.3, 2.3.8, 2.3.5) arel (2.0.6) builder (3.0.0, 2.1.2) calendar_date_select (1.16.1) cgi_multipart_eof_fix (2.5.0) columnize (0.3.2) composite_primary_keys (2.3.5.1) cucumber (0.7.2) cucumber-rails (0.3.1) diff-lcs (1.1.2) erubis (2.7.0, 2.6.6) ezcrypto (0.7.2) factory_girl (1.2.4) fastercsv (1.5.3) formtastic (0.9.8) gem_plugin (0.2.3) gherkin (2.3.2 x86-mingw32, 1.0.26 i386-mingw32) hike (1.2.1) i18n (0.6.0, 0.5.0) json (1.4.6) json_pure (1.4.6, 1....
2006 Mar 09
8
Problem with scaffolding and table name
Hello, i''m new in ruby rails framework. I have the following problem. I try to create a scaffold for a certain model of my db, but since ruby rails doesn''t assume the table name corectly (its incidents_reported ) i get errors .... Besides renaming the table :) is there a way to ''tell'' ruby rails the name of the table? I haven''t been able to find any
2008 Mar 31
16
Mongrels stop responding
I have a Rails 1.2.3 app (due for an update, I know) running on a Mongrel 1.1.4 behind Apache 2.2.3 mod_proxy on Debian 4.0. It keeps hanging up for no reason I can tell. I have tried everything that anyone has ever hinted at being a solution for this problem: - The application doesn''t use MySQL, so setting the connection timeout won''t help. - Using AR not PStore for sessions. -