Created
February 9, 2015 00:14
-
-
Save devton/cc430daccd330b0a4364 to your computer and use it in GitHub Desktop.
Arquivo de migração gerado pelo: rails g model NegativeExpression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Arquivo de migração gerado pelo: rails g model NegativeExpression | |
class CreateNegativeExpressions < ActiveRecord::Migration | |
def change | |
create_table :negative_expressions do |t| | |
t.text :domains, array: true, null: false | |
t.text :expressions, array: true, null: false | |
t.timestamps null: false | |
end | |
add_index :negative_expressions, :expressions, using: 'gin' | |
add_index :negative_expressions, :domains, using: 'gin' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment