annotate db/migrate/20110902000000_create_changeset_parents.rb @ 1274:5ea1a213c7a5
redmine-2.2-integration
Removed Ajax calls taht are no longer working in Rails 3 and started migrating them; added a new javascript file - bibliography.js - to hold the new jquery js code; added the new show_bibtex_fields.js.erb file to replace the RJS code that was in the controller.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Thu, 09 May 2013 18:44:59 +0100 |
parents |
cbb26bc654de |
children |
|
rev |
line source |
Chris@909
|
1 class CreateChangesetParents < ActiveRecord::Migration
|
Chris@909
|
2 def self.up
|
Chris@909
|
3 create_table :changeset_parents, :id => false do |t|
|
Chris@909
|
4 t.column :changeset_id, :integer, :null => false
|
Chris@909
|
5 t.column :parent_id, :integer, :null => false
|
Chris@909
|
6 end
|
Chris@909
|
7 add_index :changeset_parents, [:changeset_id], :unique => false, :name => :changeset_parents_changeset_ids
|
Chris@909
|
8 add_index :changeset_parents, [:parent_id], :unique => false, :name => :changeset_parents_parent_ids
|
Chris@909
|
9 end
|
Chris@909
|
10
|
Chris@909
|
11 def self.down
|
Chris@909
|
12 drop_table :changeset_parents
|
Chris@909
|
13 end
|
Chris@909
|
14 end
|