Class: CreateFeatures

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/arturo/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



14
15
16
# File 'lib/generators/arturo/templates/migration.rb', line 14

def self.down
  drop_table :features
end

.upObject



4
5
6
7
8
9
10
11
12
# File 'lib/generators/arturo/templates/migration.rb', line 4

def self.up
  create_table :features do |t|
    t.string   :symbol, :null => false
    t.integer  :deployment_percentage, :null => false
    #Any additional fields here

    t.timestamps
  end
end