Sha256: d8c304a43832520cccd37b9a7a29dd7590a0fd533912dff530cc778e23abaa0d

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

class CreateRtmlInstructions < ActiveRecord::Migration
  def self.up
    create_table :rtml_instructions do |t|
      t.string :name
      t.text :arguments

      t.references :source, :polymorphic => true
      t.timestamps
    end
  end

  def self.down
    drop_table :rtml_instructions
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 rails_generators/rtml/templates/db/migrate/20100110060124_create_rtml_instructions.rb
rtml-2.0.3 rails_generators/rtml/templates/db/migrate/20100110060124_create_rtml_instructions.rb
rtml-2.0.2 rails_generators/rtml/templates/db/migrate/20100110060124_create_rtml_instructions.rb
rtml-2.0.1 rails_generators/rtml/templates/db/migrate/20100110060124_create_rtml_instructions.rb
rtml-2.0.0.alpha.1 rails_generators/rtml/templates/db/migrate/20100110060124_create_rtml_instructions.rb