search for: films_pictures

Displaying 1 result from an estimated 1 matches for "films_pictures".

2006 Jan 09
1
Saving an upload
...sode_no integer NOT NULL, length character varying NOT NULL, description text NOT NULL, release_date date NOT NULL, file_url character varying NOT NULL, size double precision NOT NULL, picture_id integer NOT NULL REFERENCES pictures(id), primary key (id) ); CREATE TABLE films_pictures ( film_id integer NOT NULL, picture_id integer NOT NULL, "position" integer NOT NULL, primary key (film_id, picture_id) ); Here''s the Ruby: film.rb: class Film < ActiveRecord::Base has_and_belongs_to_many :pictures, :join_table => "films_pictures...